<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
</script>

<template>
  <div class="app-container">
    <nav class="nav-menu">
      <RouterLink to="/">BPMN流程图</RouterLink>
      <RouterLink to="/approve">审批流程图</RouterLink>
    </nav>
    <RouterView />
  </div>
</template>

<style>
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.app-container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav-menu {
  height: 40px;
  line-height: 40px;
  padding: 0 20px;
  background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  gap: 20px;
}

.nav-menu a {
  color: #333;
  text-decoration: none;
  padding: 0 10px;
}

.nav-menu a:hover {
  color: #1890ff;
}

.nav-menu a.router-link-active {
  color: #1890ff;
}
</style>
